// VisionPane.cpp : implementation file
//

#include "stdafx.h"
#include "MotionControlSoftware.h"
#include "VisionPane.h"


// CVisionPane

IMPLEMENT_DYNAMIC(CVisionPane, CDockablePane)

CVisionPane::CVisionPane()
{

}

CVisionPane::~CVisionPane()
{
}


BEGIN_MESSAGE_MAP(CVisionPane, CDockablePane)
	ON_WM_CREATE()
	ON_WM_DESTROY()
	ON_WM_SIZE()
	ON_WM_CONTEXTMENU()
END_MESSAGE_MAP()



// CVisionPane message handlers




int CVisionPane::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  Add your specialized creation code here
	m_visionShow.Create(IDD_DLG_VisionControl,this);
	m_visionShow.ShowWindow(SW_SHOW);
	return 0;
}


void CVisionPane::OnDestroy()
{
	CDockablePane::OnDestroy();

	// TODO: Add your message handler code here
	m_visionShow.DestroyWindow();
}


void CVisionPane::OnSize(UINT nType, int cx, int cy)
{
	CDockablePane::OnSize(nType, cx, cy);

	// TODO: Add your message handler code here
	if (m_visionShow.GetSafeHwnd())
	{
		CRect rct;
		GetClientRect(&rct);
		m_visionShow.MoveWindow(rct);
	}
}


void CVisionPane::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/)
{
	// TODO: Add your message handler code here
}
	